import { Component } from 'react';
import { HashRouter as Router, Route, Routes } from 'react-router-dom';
import Home from '../views/Home'
// import Play from "../views/play/Play"
// import Analysis from '../views/dashboard/Analysis';

export default class RootRouters extends Component {
    render() {
        return (
            <Router>
                <Routes>
                    <Route path="/*" element={<Home />}>
                        {/* 这里需要注意，子路由前面不要加斜杠   */}
                        {/* <Route path="dashboard">
                            <Route path="analysis" element={<Analysis />}>
                            </Route>
                        </Route> */}
                    </Route>
                </Routes>
            </Router>
        );
    }
}
